home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 122
/
Tiger_Disk_122_20xx_Tiger-Crew-Disk_de_Side_B.d64
/
error checker
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
70 lines
10 clr:poke53281,0:poke53280,0:am=99:q$=chr$(0):dimeb(35,20)
20 print"[147]new error logger"
30 print"[154][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
40 print"created by jim drew"
50 gosub330
60 print"press any key when ready"
70 geta$:ifa$=""thenpoke646,int(13*rnd(1)+2):goto60
80 open15,8,15:print#15,"i":close15
90 dimbt(35):forx=1to17:bt(x)=20:next:forx=18to23:bt(x)=18:next
100 forx=24to30:bt(x)=17:next:forx=31to35:bt(x)=16:next
110 fort=tstote:print"[147][159]track # ";t;""
120 fors=0tobt(t)
130 print"sector # ";s;:ifs<10thenprint" ";
140 open15,8,15
150 print#15,"m-w"chr$(6)q$;chr$(2)chr$(t)chr$(s)
160 print#15,"m-w"q$;q$;chr$(1)chr$(128)
170 print#15,"m-r"q$;q$
180 get#15,a$:a=asc(a$+q$):ifa>am then170
190 ifa=1thenprint" good":eb(t,s)=.:goto310
200 ifa=2thenb$="read error"
210 ifa=3thenb$="read error"
220 ifa=4thenb$="read error"
230 ifa=5thenb$="read error"
240 ifa=6thenb$="bit pattern error"
250 ifa=7thenb$="write error"
260 ifa=8thenb$="write protect on"
270 ifa=9thenb$="read error"
280 ifa=10thenb$="write error"
290 ifa=11thenb$="id mismatch error"
300 print" ";a+18;" ";b$:eb(t,s)=a+18
310 close15:getz$:ifz$<>""then450
320 next:next :goto450
330 print"[154]you may choosp[154] a set of tracks to test"
340 print"or you can test all[154] tracks"
350 print"please enter a[154] or c: a[157]";:open1,0:input#1,c$:close1:print
360 ifleft$(c$,1)="a"thents=1:te=35:return
370 ifleft$(c$,1)="c"then390
380 print"[147]":goto330
390 print"[147]";"starting track #:";:open1,0:input#1,ts$:close1:print:ts=val(ts$)
400 ifts<0orts>35then390
410 print"ending track #:";:open1,0:input#1,te$:close1:print:te=val(te$)
420 ifte<0orte>35then390
430 ifte<tsthen390
440 return
450 print"[147][154]do you wish a report of disk errors: y[157]";
460 open1,0:input#1,q$:close1:print
470 ifleft$(q$,1)="y"then500
480 ifleft$(q$,1)="n"then10
490 goto450
500 print"[154]output to printer: n[157]";:open1,0:input#1,q$:close1:print
510 ifleft$(q$,1)="y"thend=4
520 ifleft$(q$,1)="n"thend=3
530 open4,d
540 print"[147]"
550 fort=tstote:fors=0tobt(t)
560 ifeb(t,s)<>0then610
570 next:next
580 print"end of report-press any key":poke198,0
590 geta$:ifa$=""then590
600 goto10
610 print#4,"error # ";eb(t,s);" track:";t;" sector:";s
620 goto570
630 rem
640 rem
650 rem
660 rem
670 rem
680 rem
690 rem